#include "train1.h"
#include "test1.h"
#include <iostream>
#include <typeinfo>
#include <cmath>

using namespace std;


int test_basic_type()
{
	test_int();
	test_char();
	test_float();
	test_double();
	return 0;
}

// 求m的n次方
int my_pow(int m, int n) {
	int j = 1;
	for (int i = 0; i < n; i++) {
		j = j * m;
	}
	return j;
}

void count_digist(int digist) {
	int m = 0, n = 0;
	std::cin >> m >> n;
	std::cout << "m=" << m << ", n=" << n << endl;

	int count = 0;
	for (int i = m; i <= n; i++) {
		for (int j = 0; j < 10; j++) {
			// 对一个数值的每一位进行比较
			// int k = (i % int(std::pow(10, j+1))) / int(std::pow(10, j));
			int k = (i % my_pow(10, j+1)) / my_pow(10, j);
			if (k == digist) {
				count += 1;
				cout << "i=" << i << ", j=" << j << ", k=" << k << endl;
			}
		}
	}
	cout << "count=" << count << endl;
}